<?php

/*  lamp-shade_0.1
 *  License: GNU GPL v3
 *  File: ./index.php
 *  Last Mod.:  02/11/11 by Werner
 *  Authors:    Werner Roets
 *              Frank Adrian
 *  Description:
 *  This is a page example and my profile page.
 */
require_once('./modules/page/page.php');
require_once('./modules/content_items/article.php');
require_once('./modules/content_items/profile.php');
require_once('./modules/content_items/pure_html.php');

class CoboltPage extends Page
{
    public function Load($get, $post)
    {
        //general
        $this->SetLayout(new Default_homepage_layout);

        //header & footer
        $this->Header->Heading_text = "Werner 'Cobolt' Roets";
        $this->Header->Heading_size = "h1";
        
        //Content
        $aboutme = new Article("About me...");
        $aboutme->Article_text =
        "This is my lampshade profile page created for testing lampshade. This page contains no relevant information
        about the lampshade project";
        
        $myprofile = new Profile("Cobolt");
        $myprofile->Age = 20;
        $myprofile->Email = "cobolt.exe@gmail.com";
        $myprofile->Location = "Cape Town";
        $myprofile->Firstname = "Werner";
        $myprofile->Lastname = "Roets";
        
        $pure = new Pure_html();
        
        $pure->Html = '<a href="index.php?page=home">HOME HERE</a>';
        
        //wrap and render
        $this->Content->Content_items = array($aboutme, $myprofile, $pure);
        $this->SetContent($this->Content, new Default_homepage_layout);  
        $this->Render();
    }
}
?>